import { defineStore } from "pinia";
export const useMenuStore = defineStore("menu", {
  state: () => ({
    menuList: [],
  }),
  getters: {
    getMenuList: (state) => state.menuList,
  },
  actions: {
    setMenuList(list) {
        console.log("list==============>"+list);
        this.menuList = list;
    },
  },
  persist: { 
    enabled: true,
  },
});
